package com.pylc.service;

import com.pylc.model.entity.Area;

import java.util.Set;

/**
 * @author Lindsey
 */
public interface AreaService extends BaseService<Area, Long> {
    public Set<Area> getRoot();

    public Area getParent(Area area);

    public Set<Area> getChildren(Area area);

    public Boolean isNameUnique(Long parentId, String name);

    public Boolean isAreaPath(String areaPath);

    public String getAreaString(Area area);

    public String getAreaString(String areaPath);
}
